	
		**********************************************************
		** File: Figure_G1.do									**
		** Paper: Human Trafficking Indicators: A New Dataset	**
		** Author: Richard Frank								**
		** Date: July 11, 2021									**
		** Task: Creating Figure G1								**
 		**********************************************************
 
	
		cd "~"
 
	** STATIC **
	 import delimited  "static_rhats.csv", encoding(Big5) clear 

	 hist x, freq xlabel(0.995(0.005)1.015) ///
	 xtitle("Rhat", size(small))  title(Static)
	 graph save "Graph" "Static rhat.gph", replace
 
	
	** DYNAMIC **
	 import delimited "dynamic_rhats.csv",   clear 
	 replace v2="" if v2=="NA"
	 replace v2="" if v2=="x"	 
	destring v2, replace
	 hist v2, freq xlabel(0.995(0.001)1.015) ///
	 xtitle("Rhat", size(small))  title(Dynamic)
	  graph save "Graph" "Dynamic rhat.gph", replace
   
	  graph combine "Static rhat.gph"  "Dynamic rhat.gph" 
	 
